package com.mkb.dao.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.mkb.dao.GraphUserDetailDAO;
import com.mkb.entity.GraphUserDetailDO;
import com.mkb.mapper.GraphUserDetailMapper;

import java.util.List;
import java.util.Map;

@Repository
public class GraphUserDetailDAOImpl implements GraphUserDetailDAO{
	
	@Autowired
	private GraphUserDetailMapper graphUserDetailMapper;
	
	@Override
	public int deleteById(Long id) {
		return graphUserDetailMapper.deleteById(id);
	}

	@Override
	public int insert(GraphUserDetailDO record) {
		return graphUserDetailMapper.insert(record);
	}

	@Override
	public GraphUserDetailDO getById(Long id) {
		return graphUserDetailMapper.getById(id);
	}

	@Override
	public int update(GraphUserDetailDO record) {
		return graphUserDetailMapper.update(record);
	}

	@Override
	public int count(Map<String, Object> map) {
		return 0;
	}

	@Override
	public List<GraphUserDetailDO> queryList(Map<String, Object> params) {
		return graphUserDetailMapper.queryList(params);
	}
	
	@Override
        public int insertBatch(List<GraphUserDetailDO> dos) {
           return graphUserDetailMapper.insertBatch(dos);
        }

	@Override
	public void deleteByGraphId(Long graphId) {
		graphUserDetailMapper.deleteByGraphId(graphId);
	}
}
